package com.settlement.system.service.impl;

import com.settlement.system.mapper.TblDyCashDeposityDetailMapper;
import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.TblDyCashDeposityDetail;
import com.settlement.system.service.ITblDyCashDeposityDetailService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.settlement.system.mapper.BaseMapper;
import jakarta.annotation.Resource;
import java.util.Map;

/**
 * 抖音店铺保证金账单 服务实现类
 * @author xiaochuan
 * @since 2023-08-28
 */
@Slf4j
@Service
public class TblDyCashDeposityDetailServiceImpl extends BaseServiceImpl implements ITblDyCashDeposityDetailService {

    @Resource
    private TblDyCashDeposityDetailMapper tblDyCashDeposityDetailMapper;

    @Override
    public BaseMapper init() {
        return tblDyCashDeposityDetailMapper;
    }

    @Override
    public TblDyCashDeposityDetail getFoot(Map<String, Object> params) throws ServiceException {
        try {
            return tblDyCashDeposityDetailMapper.getFoot(params);
        } catch (Exception ex) {
            log.error("获取合计异常", ex);
            throw new ServiceException("获取合计异常", ex);
        }
    }
}

